#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void){
    printf("的在个编译环境里生成0~%d的随机数.\n", RAND_MAX);

    int retry = 0;

    srand(time(NULL));

    do {
        printf("生成了随机数%d.\n", rand() % 101);
        ++retry;
    } while (retry != 10);


    return 0;
}
